package e2q.portal.domain.uPortal;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import e2q.web.orm.Persistent;

/**
 * UpUser entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "up_user")
@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true)
public class UpUser extends Persistent {

	// private Department department;
	@Transient
	private Long id;
	@Id
	@GeneratedValue(generator = "pk")
	@Column(name = "USER_ID")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private Integer userId;
	@Column(name = "USER_NAME")
	private String userName;
	@Column(name = "USER_DFLT_USR_ID")
	private Integer userDfltUsrId;
	@Column(name = "USER_DFLT_LAY_ID")
	private Integer userDfltLayId;
	@Column(name = "NEXT_STRUCT_ID")
	private Integer nextStructId;
	@Column(name = "LST_CHAN_UPDT_DT")
	private Date lstChanUpdtDt;

	// Constructors

	/** default constructor */
	public UpUser() {
	}

	/** minimal constructor */
	public UpUser(Long id) {
		this.id = id;
	}

	/** full constructor */
	public UpUser(Long id, Integer userId, String userName,
			Integer userDfltUsrId, Integer userDfltLayId, Integer nextStructId,
			Date lstChanUpdtDt) {
		this.id = id;
		this.userId = userId;
		this.userName = userName;
		this.userDfltUsrId = userDfltUsrId;
		this.userDfltLayId = userDfltLayId;
		this.nextStructId = nextStructId;
		this.lstChanUpdtDt = lstChanUpdtDt;
	}

	// Property accessors

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getUserDfltUsrId() {
		return this.userDfltUsrId;
	}

	public void setUserDfltUsrId(Integer userDfltUsrId) {
		this.userDfltUsrId = userDfltUsrId;
	}

	public Integer getUserDfltLayId() {
		return this.userDfltLayId;
	}

	public void setUserDfltLayId(Integer userDfltLayId) {
		this.userDfltLayId = userDfltLayId;
	}

	public Integer getNextStructId() {
		return this.nextStructId;
	}

	public void setNextStructId(Integer nextStructId) {
		this.nextStructId = nextStructId;
	}

	public Date getLstChanUpdtDt() {
		return this.lstChanUpdtDt;
	}

	public void setLstChanUpdtDt(Date lstChanUpdtDt) {
		this.lstChanUpdtDt = lstChanUpdtDt;
	}

}